約 6,137,495 件
https://w.atwiki.jp/wiki2_okumura/pages/62.html
Javaにかんするメモ。 GWT GWT/メモ Torque Torque/チュートリアル
https://w.atwiki.jp/skmt200x/pages/122.html
Keytoolの使い方 概要 デフォルトのキーストアの格納先 キーストアに格納されている鍵一覧 証明書のインポート 秘密鍵を含むPKCS12のインポート Jarファイルの署名 TOPへ編集 概要 デフォルトのキーストアの格納先 JAVA_HOME/lib/security/cacerts デフォルトのパスワードはchangeitになっているため、変更しておこう。 キーストアに格納されている鍵一覧 keytool -list -keystore cacerts keytool -list -keystore キーストア -storetype PKCS7|PKCS12... 証明書のインポート keytool -import -file X509証明書のパス -keystore cacerts 指定するX509証明書が取り込めない場合は、BEGIN CERTIFICATEブロックの前に、 意図しないテキストフィールドなどが格納されている場合に、うまく取り込めない。 秘密鍵を含むPKCS12のインポート keytool -importkeystore PKCS12などのパス -srckeystoretype PKCS -keystore 出力先のキーストア 序数の別名で、取り込まれるので、必要に応じて別名を変更 keytool -changealias -keystore キーストア -destalias 変更後 Jarファイルの署名 jarsigner Jarファイル 別名 最終更新日 [2012-07-15]
https://w.atwiki.jp/javadsge/pages/7665.html
var point=new Array(); function myFunction() { urlx="https //opendata.resas-portal.go.jp/api/v1/jobs/broad"; var he = { X-API-KEY QTPchshTtS5JGmrEw0ELladqSbGwnKxh5KVqmZvU }; var op = { headers he }; str=""; try { var res = UrlFetchApp.fetch(urlx,op); str=res.getContentText(); } catch (e) { Logger.log("Fail");} Logger.log(str); p1=str.indexOf("["); p2=str.indexOf("]",p1); str=str.substring(p1+1,p2); de="},"; for(s=1;s 100;s++){ str=str.replace(de,"△"); } var x=str.split("△"); sx=0; for(s=0;s x.length;s++){ sx=sx+1; } number=sx; for(s=0;s number+1;s++){ point[s]=new Array(); } point[0][0]="a"; point[0][1]="b"; for(s=1;s number+1;s++){ p1=x[s-1].indexOf("iscoCode"); p1=x[s-1].indexOf(" ",p1); p2=x[s-1].indexOf(",",p1); p3=x[s-1].indexOf("iscoName",p2); p3=x[s-1].indexOf(" ",p3); p4=x[s-1].length; point[s][0]=x[s-1].substring(p1+1,p2); point[s][1]=x[s-1].substring(p3+1,p4);; } var id="1l6irN9pUv3lx_9pm7hwP6Ei6mlXU1KB_VV8fFKNJsIo"; ex = SpreadsheetApp.openById(id); var sheet = ex.getSheetByName("data"); sheet.getRange(1,1,number+1,2).setValues(point); }
https://w.atwiki.jp/paladin/pages/35.html
2009/12/27 最近Twitterが流行っているようで、技術者のはしくれとして気になっている。 (いまさら感たっぷりだが) ひとまず、アカウントを作って一通り使い方を理解したので(ちなみに、使用したクライアントソフトはTweetDeck)、Twitterの機能を実現しているAPIについて色々と試してみたい。 以下、大雑把な方針。 言語については、Javaを使用(ただの趣味) まずはJavaでHTTP通信ができるようになることから Twitterクライアントを作る為の基礎知識を得られる程度をとりあえず目標に 何はともあれ情報収集ということで、今回は以下のページを参考にさせて頂いた。 TwitterAPIについては英語で公開されているが、日本語に訳して公開してくれているページがあるのでそこを参照させていただいた。 観測気球:http //watcher.moe-nifty.com/memo/2007/04/twitter_api.html ネットワーク系のクラスはほとんど使ったことがないので、javadocくらいは目を通すことにする。 参照javadoc:http //java.sun.com/javase/ja/6/docs/ja/api/java/net/URL.html HTTPについて気になることは以下のページでRFCの日本語訳を探してみた。 RFCを訳してくれる方々にも、リストとしてまとめてくれている方にも感謝。 原文もたぶんRFCなら読めるけど、やはり若干ストレスが・・・。 というわけで大変助かります。 RFC日本語版リスト:http //www5d.biglobe.ne.jp/~stssk/rfcjlist.html RFC 2068 HTTP/1.1 日本語訳:http //www.y-adagio.com/public/standards/tr_http11_2068/toc.htm 実装にあたっては、下記ページを参考にさせて頂いた。 68user s page:http //x68000.q-e-d.net/~68user/ つづきはJavaでHTTP通信を試してみる(2)で =============== ここから宣伝(自動追加) ===============
https://w.atwiki.jp/keisks/pages/285.html
http //stackoverflow.com/questions/7118178/arrays-fill-with-multidimensional-array-in-java double[][] matrix = new double[20][4]; // Fill each row with 1.0 for (double[] row matrix) Arrays.fill(row, 1.0);
https://w.atwiki.jp/suffix/pages/146.html
Javaの出力のクラス間の関係をグラフ化すると次のような感じになる。 詳細はJava出力(続き)で。
https://w.atwiki.jp/javajavajava/
GMがIN時はギランにいます 第一回目のキャラは イリュージョニスト です みなさんイリュについてこんなのがあったらいいなとかのアドバイスください。 各キャラを個別にテストしおもしろい仕様にしていくためまた鯖官のJAVA弄り趣味のため鯖建てました。 ちなみに鯖官最近Java弄り覚えたばかりの初心者です。 バグや予想もできない状況からワイプ! 時期によってクラスはコレやってください!! なんてこともある酷い鯖ですがどうか付き合ってください。 また、l1JのJavaに関して知識がある方はBBSにて開発のヒントをいただきたいです。 普段やってるクラスの可能性を引き出しましょう。 基本テストサーバーのテストという形なので各クラスの能力拡張が終わるまでは何度もワイプします。 それでもよい方のご参加よろしくお願いします。 wikiは追々充実させていきます。
https://w.atwiki.jp/fumokmm/pages/15.html
package framework.control; import org.eclipse.swt.widgets.Composite;import org.eclipse.swt.widgets.Control; import framework.exception.NonParentExistsException; public abstract class GControl{protected Composite parent;protected String name;protected String value;public GControl(String name, String value){this.name = name;this.value = value;}public Control create() throws NonParentExistsException{if(this.parent == null){throw new NonParentExistsException();}return create();}public Control create(Composite comp) throws NonParentExistsException{setParent(comp);return generate();}protected abstract Control generate(); public String getName(){return this.name;}public String getValue(){return this.value;}public void setParent(Composite parent){this.parent = parent;}}
https://w.atwiki.jp/ce00582/pages/1265.html
import java.awt.*; import javax.swing.*; public class tax36 extends JFrame { public static void main(String args[]) { new tax36(); } public tax36() { setDefaultCloseOperation(EXIT_ON_CLOSE); getContentPane().add(new pp()); setSize(500,500); setTitle("dsge36"); setVisible(true); } } class pp extends JPanel { public pp(){setBackground(Color.white);} public void paintComponent(Graphics g) { double data[]= new double[201]; int n; int y1,y2,x1,x2; super.paintComponent(g); g.drawString("練習", 100,400); g.setColor(Color.red); data=tax(); for (n=1;n 100;n++){ x1=(int)(500*data[n]); x2=(int)(500*data[n+1]); y1=(int)(500-500*data[n+100]); y2=(int)(500-500*data[n+101]); g.drawLine(x1,y1,x2,y2); } } static double[] tax(){ double th[]= new double[101]; double c[]= new double[101]; double y[]= new double[101]; int opc[]= new int[101]; int opy[]= new int[101]; int opq[]= new int[101]; double u[][][]=new double[101][3][3]; double ww[][][]=new double[100][3][3]; double v[][][][]=new double[100][3][3][21]; int gotoc[][][][]=new int[100][3][3][21]; int gotoy[][][][]=new int[100][3][3][21]; int gotoq[][][][]=new int[100][3][3][21]; double endv[][]=new double[3][3]; int endc[][]=new int[3][3]; int endy[][]=new int[3][3]; int endq[][]=new int[3][3]; int s; double ls; double w; double cs; double ys; double b1; double b2; double wel; double maxwel; int t; int n; int n1; int n2; int pp; int q; int j; double c1; double l1; double h; double u1; int ns1; int ns2; int qx; int nx1; int nx2; double vs; double v1; double maxv; double dc; double dy; int e; double data1[]=new double[101]; double data2[]=new double[201]; double data3[]=new double[201]; double maxy; data1=ex1(); data2=ex2(); for (s=1;s 101;s++){ c[s]=data2[s]; y[s]=data2[s+100]; } for (s=1;s 101;s++){ th[s]=data1[s]; } h=0.001; t=0; while(t 1000){ for (s=1;s 101;s++){ for (n1=-1;n1 2;n1++){ for (n2=-1;n2 2;n2++){ c1=c[s]+n1*h; l1=(y[s]+n2*h)/th[s]; u1=ux(c1,l1); u[s][n1+1][n2+1]=u1; } } } for (s=1;s 100;s++){ for (n1=-1;n1 2;n1++){ for (n2=-1;n2 2;n2++){ c1=c[s]+n1*h; l1=(y[s]+n2*h)/th[s+1]; u1=ux(c1,l1); ww[s][n1+1][n2+1]=u1; } } } for (n1=-1;n1 2;n1++){ for (n2=-1;n2 2;n2++){ for (q=-10;q 11;q++){ v[1][n1+1][n2+1][q+10]=-999; } } } for (n1=-1;n1 2;n1++){ for (n2=-1;n2 2;n2++){ q=n2-n1; v[1][n1+1][n2+1][q+10]=u[1][n1+1][n2+1]; } } for (s=2;s 100;s++){ for (n1=-1;n1 2;n1++){ for (n2=-1;n2 2;n2++){ for (q=-10;q 11;q++){ u1=u[s][n1+1][n2+1]; qx=q-n1+n2; pp=0; if (qx 10)pp=100; if (qx -10)pp=100; if (pp 50)qx=0; vs=-999; ns1=0; ns2=0; for (nx1=-1;nx1 2;nx1++){ for (nx2=-1;nx2 2;nx2++){ v1=u1+v[s-1][nx1+1][nx2+1][qx+10]; if (ww[s-1][nx1+1][nx2+1] u1)v1=-999; if (v1 vs)ns1=nx1; if (v1 vs)ns2=nx2; if (v1 vs)vs=v1; } } if (pp 50)vs=-999; gotoc[s][n1+1][n2+1][q+10]=ns1; gotoy[s][n1+1][n2+1][q+10]=ns2; gotoq[s][n1+1][n2+1][q+10]=qx; v[s][n1+1][n2+1][q+10]=vs; } } } } for (n1=-1;n1 2;n1++){ for (n2=-1;n2 2;n2++){ u1=u[100][n1+1][n2+1]; qx=n2-n1; vs=-999; ns1=0; ns2=0; for (nx1=-1;nx1 2;nx1++){ for (nx2=-1;nx2 2;nx2++){ v1=u1+v[99][nx1+1][nx2+1][qx+10]; if (ww[99][nx1+1][nx2+1] u1){ v1=-999; } if (v1 vs){ ns1=nx1; } if (v1 vs){ ns2=nx2; } if (v1 vs){ vs=v1; } } } endc[n1+1][n2+1]=ns1; endy[n1+1][n2+1]=ns2; endq[n1+1][n2+1]=qx; endv[n1+1][n2+1]=vs; } } maxv=-999; ns1=0; ns2=0; for (n1=-1;n1 2;n1++){ for (n2=-1;n2 2;n2++){ if (endv[n1+1][n2+1] maxv){ ns1=n1; } if (endv[n1+1][n2+1] maxv){ ns2=n2; } if (endv[n1+1][n2+1] maxv){ maxv=endv[n1+1][n2+1]; } } } opc[100]=ns1; opy[100]=ns2; opc[99]=endc[opc[100]+1][opy[100]+1]; opy[99]=endy[opc[100]+1][opy[100]+1]; opq[99]=endq[opc[100]+1][opy[100]+1]; for (j=1;j 99;j++){ s=99-j; opc[s]=gotoc[s+1][opc[s+1]+1][opy[s+1]+1][opq[s+1]+10]; opy[s]=gotoy[s+1][opc[s+1]+1][opy[s+1]+1][opq[s+1]+10]; opq[s]=gotoq[s+1][opc[s+1]+1][opy[s+1]+1][opq[s+1]+10]; } e=0; for (s=1;s 101;s++){ e=e+opc[s]*opc[s]+opy[s]*opy[s]; } for (s=1;s 101;s++){ c[s]=c[s]+opc[s]*h; y[s]=y[s]+opy[s]*h; } System.out.println(e); if (e 2){ h=h/2; } if (h 0.00001){ t=10000; } t=t+1; } maxy=-999; for (s=1;s 101;s++){ if (y[s] maxy)maxy=y[s]; } for (s=1;s 99;s++){ dc=c[s+1]-c[s]; dy=y[s+1]-y[s]; data3[s]=0; if (dy 0)data3[s]=1-dc/dy; } for (s=1;s 100;s++){ data3[s+100]=y[s]/maxy; } return data3; } static double[] ex2(){ double th[]= new double[101]; int s; double tl; double tr; double ls; double w; double cs; double ys; double b1; double b2; double tr1; double tr2; double tr3; double wel; double maxwel; double maxtl; double maxtr; int t; int n; double h; double c[]= new double[101]; double y[]= new double[101]; double data1[]=new double[101]; double data[]=new double[201]; int n1; int n2; data1=ex1(); for (s=1;s 101;s++){ th[s]=data1[s]; } maxwel=-999; maxtr=0; maxtl=0; for (n=20;n 45;n++){ tl=0.01*n; tr1=0.01; tr2=0.02; tr=tr1; b1=bud(tl,tr1,th); t=0; while (t 100) { b2=bud(tl,tr2,th); tr3=tr2-b2*(tr2-tr1)/(b2-b1); tr1=tr2; tr2=tr3; b1=b2; if (b2*b2 0.00001)t=1000; t=t+1; } tr=tr2; wel=seekwel(tl,tr,th); if (wel maxwel)maxtl=tl; if (wel maxwel)maxtr=tr; if (wel maxwel)maxwel=wel; } tl=maxtl; tr=maxtr; for (s=1;s 101;s++){ w=(1-tl)*th[s]; ls=(w-tr)/(2*w); if (ls 0)ls=0; c[s]=w*ls+tr; y[s]=th[s]*ls; } for (s=1;s 101;s++){ data[s]=c[s]; data[s+100]=y[s]; } return data; } static double ux(double c1,double l1){ double u1; double c3; double l3; int pp; pp=0; c3=c1; l3=l1; if (c3 0)pp=100; if (l3 0)pp=100; if (l3 1)pp=100; if (pp 50)c3=0.5; if (pp 50)l3=0.5; u1=Math.log(c3)+Math.log(1-l3); if (pp 50)u1=-999; return u1; } static double bud(double tl,double tr,double th[]){ double bx; int s; double w; double y1; double c1; double l1; bx=0; for (s=1;s 101;s++){ w=(1-tl)*th[s]; l1=(w-tr)/(2*w); if (l1 0)l1=0; y1=th[s]*l1; c1=w*l1+tr; bx=bx+y1-c1; } return bx; } static double seekwel(double tl,double tr,double th[]){ double sw; int s; double w; double l1; double c1; sw=0; for (s=1;s 101;s++){ w=(1-tl)*th[s]; l1=(w-tr)/(2*w); if (l1 0)l1=0; c1=w*l1+tr; sw=sw+ux(c1,l1); } return sw; } static double[] ex1(){ double p; double mu; double sig; double yy; double th[]= new double[101]; int s; mu=0; sig=0.39; for (s=1;s 101;s++){ p=0.01*s-0.005; yy=seeky(p,mu,sig); th[s]=Math.exp(yy); } return th; } static double f(double x,double mu,double sig){ double pi,x1,x2,x3,fx; pi = 3.1415; x1=-Math.pow(x - mu,2) / (2*Math.pow(sig,2)); x2=Math.exp(x1); x3=sig*Math.pow(2*pi,0.5); fx=x2/x3; return fx; } static double g(double y,double mu, double sig){ double gx,h,x; int n,t; gx=0; h=0.001; t=(int)(y/h); for (n=-2000;n t;n++){ x=n*h; gx=gx+f(x,mu,sig)*h; } return gx; } static double seeky(double p,double mu,double sig){ double g1,g2,y1,y2,y3; int t; y1=0.4; y2=-0.2; g1=g(y1,mu,sig); t=0; while(t 100){ g2=g(y2,mu,sig); y3=y2+(p-g2)*(y2-y1)/(g2-g1); y1=y2; y2=y3; g1=g2; if (Math.pow(p-g2,2) 0.0001)t=1000; t=t+1; } return y2; } }
https://w.atwiki.jp/h264hirasa/pages/20.html
JAVA Advanced Image (JAI) https //jai.dev.java.net/binary-builds.html JAI インストール